<?
    class Principio_Model_Template implements PrincipioLab_IDAble
    {
        use PrincipioLab_TCollection;

        private $ext_number;
        private $template;

        public function __construct($ext_number, $template = "")
        {
            $this->ext_number = intval($ext_number);
            $this->template = $template;
        }


        public function _getID() { return $this->getExtNumber(); }


        public static function fromArray(array $values = null)
        {
            return new Principio_Model_Template($values['ext_number'], $values['template']);
        }

        public function getExtNumber() { return $this->ext_number; }
        public function getTemplate() { return $this->template; }


        public function setTemplate($template)
        {
            $this->template = $template;
            return $this;
        }
    }
?>